'use strict';
module.exports = dc => {
  const sequelize = dc.orm;
  const DataTypes = dc.ORM;
  const TrademarkInfo = sequelize.define('TrademarkInfo', {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true,
      comment: '序号'
    },
    application_date: {
      type: DataTypes.DATEONLY,
      comment: '申请日期'
    },
    trademark: {
      type: DataTypes.JSONB,
      comment: '商标'
    },
    trademark_name: {
      type: DataTypes.TEXT,
      comment: '商标名称'
    },
    registration_number: {
      type: DataTypes.STRING(50),
      comment: '注册号'
    },
    international_class: {
      type: DataTypes.STRING(50),
      comment: '国际分类'
    },
    trademark_status: {
      type: DataTypes.TEXT,
      comment: '商标状态'
    },
    registration_announcement_date: {
      type: DataTypes.DATEONLY,
      comment: '注册公告日期'
    },
    operation: {
      type: DataTypes.TEXT,
      comment: '操作'
    },
    expiration_date: {
      type: DataTypes.DATEONLY,
      comment: '到期日期'
    },
    description: {
      type: DataTypes.TEXT,
      comment: '描述'
    }
  }, {
    tableName: 'trademark_info',
    timestamps: false
  });
  dc.models.TrademarkInfo = TrademarkInfo;
    return TrademarkInfo;
}; 